11. Fix the "Did You Feel It?" App

Fix The Did You Feel It App

Question:

Start Quiz:

Solution:

Check the solution in GitHub repository here.

 

INSTRUCTOR NOTE:

Hint: If you get stuck, and need more detailed steps, refer to this list. But try the task on your own first!

  1. Create a subclass of AsyncTask as a private inner class in the MainActivity class.
    Implement the doInBackground() method to fetch the earthquake data and return the result.
    Implement the onPostExecute() method to update the UI based on our results.

  2. Create an instance of our inner class in the MainActivity onCreate() method and execute it.

You can find the code from the solution video here.